home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Programming / Mac wt 0.04 Folder / MacWT.fat 0.04 / Mac WT source / wt / Makefile < prev    next >
Encoding:
Makefile  |  1994-05-06  |  3.1 KB  |  125 lines  |  [TEXT/MMCC]

  1. #  wt -- a 3d game engine
  2. #
  3. #  Copyright (C) 1994 by Chris Laurel
  4. #  email:  claurel@mr.net
  5. #  snail mail:  Chris Laurel, 5700 W Lake St #208,  St. Louis Park, MN  55416
  6. #
  7. #  This program is free software; you can redistribute it and/or modify
  8. #  it under the terms of the GNU General Public License as published by
  9. #  the Free Software Foundation; either version 2 of the License, or
  10. #  (at your option) any later version.
  11. #
  12. #  This program is distributed in the hope that it will be useful,
  13. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. #  GNU General Public License for more details.
  16. #
  17. #  You should have received a copy of the GNU General Public License
  18. #  along with this program; if not, write to the Free Software
  19. #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. NAME=wt
  23.  
  24.  
  25. ############ Graphics systems -- uncomment one of these ##########
  26. #### Linux with svgalib
  27. # GRAPHICLIBS=-lvgagl -lvga
  28. # GRAPHOBJS=linuxvga.o
  29. # uncomment only one of the next two lines
  30. # INPUTDEVOBJS=linux-console.o
  31. # INPUTDEVOBJS=linux-mouse.o
  32. # GRAPHDEFS=-DLINUXVGA
  33.  
  34. #### X11 
  35. # If your server does not support the shared memory extension, add
  36. #   -DNO_XSHM to the GRAPHDEFS line
  37.  GRAPHICLIBS=-lXext -lX11
  38.  GRAPHOBJS=x11graphics.o
  39.  INPUTDEVOBJS=x11input.o
  40.  GRAPHDEFS=-DX11GRAPHICS
  41.  NAME=xwt
  42.  
  43. ### Architecture ###
  44. ARCH=ARCH_i86
  45. # ARCH= ARCH_SUN
  46. # ARCH=ARCH_OTHER
  47. ARCH_DEFS=-D$(ARCH)
  48.  
  49. CC=gcc
  50. #### debugging version
  51. # CFLAGS=-g -m486 -Wall -Winline $(GRAPHDEFS) $(ARCH_DEFS)
  52. # BASELIBS=-lm
  53.  
  54. #### profiling version
  55. # CFLAGS=-g -pg -O2 -m486 -Wall -Winline $(GRAPHDEFS) $(ARCH_DEFS)
  56. # BASELIBS=-lm
  57.  
  58. #### profiling version -- bprof
  59. # CFLAGS=-g -pg -m486 -Wall -Winline $(GRAPHDEFS) $(ARCH_DEFS)
  60. # BASELIBS=-lbmon -lm
  61.  
  62. #### standard version
  63.  CFLAGS=-O2 -m486 -Wall -Winline $(GRAPHDEFS) $(ARCH_DEFS)
  64.  BASELIBS=-lm
  65.  
  66. #### demo version
  67. # CFLAGS=-O2 -static -m486 -Wall -Winline $(GRAPHDEFS) $(ARCH_DEFS)
  68. # BASELIBS=-lm
  69.  
  70.  
  71.  
  72. LIBS=$(BASELIBS) $(GRAPHICLIBS)
  73.  
  74.  
  75. OBJECTS=error.o fixed.o framebuf.o gifload.o list.o render.o \
  76.     table.o    texture.o view.o world.o worldfile.o wt.o wtmem.o \
  77.     $(INPUTDEVOBJS) $(GRAPHOBJS)
  78.  
  79. $(NAME): $(OBJECTS)
  80.     $(CC) $(CFLAGS) $(OBJECTS) -o $(NAME) $(LIBS)
  81.  
  82. clean:
  83.     rm *.o $(NAME)
  84.  
  85.  
  86. error.o: framebuf.h graphics.h error.h
  87.  
  88. fixed.o: error.h fixed.h 
  89.  
  90. framebuf.o: wt.h error.h graphics.h wtmem.h framebuf.h
  91.  
  92. gifload.o: wt.h error.h texture.h
  93.  
  94. linux-console.o: wt.h error.h input.h
  95.  
  96. linux-mouse.o: wt.h error.h input.h
  97.  
  98. linuxvga.o: wt.h error.h framebuf.h graphics.h
  99.  
  100. list.o: wt.h wtmem.h list.h
  101.  
  102. render.o: wt.h error.h fixed.h wtmem.h table.h view.h texture.h \
  103.     framebuf.h graphics.h world.h slice.h render.h \
  104.     slice.c
  105.  
  106. table.o: wtmem.h table.h
  107.  
  108. texture.o: wt.h wtmem.h error.h texture.h
  109.  
  110. view.o: fixed.h wtmem.h view.h
  111.  
  112. world.o: wt.h fixed.h error.h wtmem.h texture.h table.h world.h
  113.  
  114. worldfile.o: wt.h error.h fixed.h wtmem.h list.h table.h texture.h world.h \
  115.      worldfile.h
  116.  
  117. wt.o: wt.h fixed.h  view.h texture.h table.h world.h worldfile.h framebuf.h \
  118.     render.h graphics.h input.h
  119.  
  120. wtmem.o: error.h wtmem.h
  121.  
  122. x11graphics.o: wt.h error.h framebuf.h graphics.h
  123.  
  124. x11input.o: wt.h error.h input.h x11graphics.h
  125.